#FROM openjdk:8-jdk-alpine
#FROM eclipse-temurin:21-jre-jammy
FROM registry.xuelangyun.com/sh/sh-dc-resource-manager:7
#RUN apk add --no-cache tzdata
#ENV TZ=Asia/Shanghai
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /app
COPY sh-dc-resource-manager.jar /app
EXPOSE 8080
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-Dspring.config.location=/app/config/application.yml","-jar","sh-dc-resource-manager.jar"]